<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@page import="br.com.bean.DisciplinaTurmaBean"%>
<%@page import="br.com.controller.DisciplinaController"%>
<%@page import="br.com.connection.ConnectionFactory"%>
<%@page import="java.sql.Connection"%>
<%@page import="java.util.List"%>

<% Connection conn = new ConnectionFactory().getConnection(); %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>Insert title here</title>
</head>

<body>
<option value="0">Selecione</option>
	<% int id = Integer.parseInt(request.getParameter("id"));
	List<DisciplinaTurmaBean> discList = DisciplinaController.ListDisc(conn, id);
	for (DisciplinaTurmaBean list : discList) {
		
	%>
	<option value="<%=list.getId()%>"><%=list.getId_diciplina()%></option>
	<%}%>
	
</body>
</html>